	<form method='post' action="{:U('Information/Import')}" >
		<input type="hidden" name="opmode" value="import">
		<ol class="spaced">
			<li class="col-xs-12 line-height-32">
				<a class="btn btn-primary" href="__PUBLIC__/Templete/student.xls" target="_blank"><i class="fa fa-download"></i>下载Excel格式&nbsp;</a>
			</li>
			<li class="col-xs-12 line-height-32">
				按照Excel格式，整理用户信息，不要调整列循序
			</li>
			<li class="col-xs-12 line-height-32">
				选择要导入的文件&nbsp;
				<input type="file" style="height:42px" class="form-control col-30" name="resume{$id}" id="form{$id}" onchange="ajaxUpload({$id},'form{$id}')">
			</li>
		</ol>
		<div class="action ">
			<input class="btn btn-sm btn-primary" type="submit" value="导入">
			<input  class="btn btn-sm btn-default" type="button" value="取消" onclick="go_return_url();">
		</div>
	</form>
<script src="__PUBLIC__/js/jquery.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/jquery.ajaxfileupload.js"></script>
<script type="text/javascript">
  function ajaxUpload(id,formid){
    $.ajaxFileUpload({
        type:'POST',
        url:'{:U("Information/upload")}',
        secureuri:false,
        fileElementId:formid,
        dataType: 'json',
        data: {'id':id},
        success:function (data){
            if(data == 1){
                alert('选择文件成功');
                return false;
            }else if(data == 2){
                alert('选择文件失败');
                return false;
            }else if(data == 3){
              alert('选择文件失败');
                return false;
            }
        },
        error: function(){
            // alert('网络超时');
            return false;
        }
    });
}
function go_return_url(){
	window.history.go(-1);
}
</script>